package com.xiaoyy.core.dict.gateway.req;

import com.xiaoyy.core.common.validators.Validators;
import com.xiaoyy.core.common.vo.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value="字典删除对象", description="数据字典删除")
public class DictDeleteReq extends BaseVO {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(groups = {
            Validators.Del.class
    },message = "字典Id不能为空")
    private Long sysId;
    @ApiModelProperty(value = "数据字典主键批量")
    @NotNull(groups = {
            Validators.BatchDel.class
    },message = "字典Id列表不能为空")
    private List<Long> sysIds;
}